package com.dubbo2.lib;


import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.hystrix.EnableHystrix;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;

@Slf4j
@Configuration
@MapperScan("com.dubbo2.lib.mapper")
@EnableFeignClients
@EnableDiscoveryClient
@EnableCircuitBreaker
@SpringBootApplication
@EnableJpaRepositories("com.dubbo2.**.jpa")
@EnableHystrix
public class Application {
    public static void main(String[] args) {

        SpringApplication.run(Application.class, args);
        log.info(">>>>>>>>>>>>======Application run success=====<<<<<<<<<<<<<<<<<<<<<");
    }
}
